package com.zbkj.common.enums;

import lombok.Getter;

import java.util.Objects;

/**
 * @Auther:
 * @Date: 2024/9/30 14:26
 * @Description:
 */
public enum OrderTypeEnum {
    //订单类型 0 流量包订单, 1申请报告订单
    TYPE0(0),
    TYPE1(1);

    @Getter
    private int type;

    OrderTypeEnum(Integer type) {
        this.type = type;
    }

    public static boolean isType1(Integer type) {
        return Objects.nonNull(type) && TYPE1.getType() == type.intValue();
    }
}
